Type.registerNamespace("Telerik.Web.UI.Scheduler");
(function(){var b=Telerik.Web.UI;
var d=Telerik.Web.UI.Scheduler;
var a=60000;
var c=a*60;
var e=c*24;
var f=5;
b.Scheduler.MultiDayModel=function(g){b.Scheduler.MultiDayModel.initializeBase(this,[g]);
this._settings=this._owner.get_multiDayViewSettings();
};
b.Scheduler.MultiDayModel.prototype={get_visibleRangeStart:function(){var g=this._owner;
var h=d.DateTime.getDate(g.get_selectedDate());
if(!g.get_showAllDayRow()){h=d.DateTime.add(h,this.get_effectiveDayStartTime());
}return h;
},get_visibleRangeEnd:function(){var g=this._owner;
var h=new d.DateTime(g.get_selectedDate()).get_date().add((this.get_numberOfDays()-1)*e).toDate();
if(!g.get_showAllDayRow()){h=d.DateTime.add(h,this.get_effectiveDayEndTime());
}else{h=d.DateTime.add(h,e);
}return h;
},get_numberOfDays:function(){return this._settings.numberOfDays||f;
},get_nextPeriodDate:function(){return d.DateTime.add(this._owner.get_selectedDate(),(this.get_numberOfDays()*e));
},get_previousPeriodDate:function(){return d.DateTime.add(this._owner.get_selectedDate(),-(this.get_numberOfDays()*e));
},_getFirstDayStart:function(){return new d.DateTime(this._owner.get_selectedDate()).get_date().add(this.get_effectiveDayStartTime()).toDate();
},_getTimeFromIndex:function(i){var g;
if(i.viewPartIndex==0){g=new d.DateTime(this._owner.get_selectedDate()).get_date().toDate();
}else{g=this._getFirstDayStart();
}var h=i.rowIndex*this._owner.get_minutesPerRow();
return new d.DateTime(g).add(i.cellIndex*e).add(h*a).toDate();
}};
b.Scheduler.MultiDayModel.registerClass("Telerik.Web.UI.Scheduler.MultiDayModel",b.Scheduler.WeekModel);
})();
